/*
 * Copyright (C) 2014 Nathan T
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package engine.game.combat.ability.universal;

import engine.entities.Mob;
import engine.game.combat.ability.Ability;
import engine.game.gfx.Screen;
import engine.resource.Resources;

/**
 *
 * @author Nathan T
 */
public class AetherEssence extends Ability {
    
    public static final String NAME = "Aether Essence";
    
    public static final int HEALTH_GAIN = 5;
    public static final int AETHER_COST = 1;
    
    public static final String SPRITE_NAME = "AETHER_ESSENCE_ICON";
    
    public AetherEssence() {
        super(NAME, Resources.getSprite(SPRITE_NAME));
        this.requiresMobTarget = false;
        this.requiresPointTarget = false;
        this.endsCombatTurn = true;
        this.animType = ABILITY_ANIM.CAST;
        this.startsCombat = false;
    }
    
    @Override
    protected void activateEffect() {
        caster.gainHealth(getHealthGain());
    }
    
    private int getHealthGain() {
        return HEALTH_GAIN;
    }
    
    @Override
    protected int getAetherCost() {
        return AETHER_COST;
    }

    @Override
    public String costString() {
        return getAetherCost() + " Aether";
    }

    @Override
    public String effectString() {
        return "Restores " + getHealthGain() + " Health to the caster.";
    }

    @Override
    public Screen.ScreenSelectFilter getMobFilter() {
        return null;
    }

    @Override
    public Screen.ScreenSelectFilter getPointFilter() {
        return null;
    }
    
}
